<script>
	import {getGet} from "api/index.js"
	export default {
		onLaunch: function() {
			// console.log('App Launch')
			getGet("/pcUser/login-user/info").then(res=>{
				// console.log(res)
				if(res.data.code==0){
					this.$store.commit("modifyLogin",{userInfo:res.data.userInfo,isLogin:true})
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>


<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>


